# Maintainer: Martell Malone <martellmalone@gmail.com>

pkgname="libelf"
pkgver=0.8.13
pkgrel=1
pkgdesc="ELF object file access library (mingw-w64)"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://www.mr511.de/software/english.html"
options=('staticlibs')
source=("http://www.mr511.de/software/${pkgname}-${pkgver}.tar.gz")
md5sums=('4136d7b4c04df68b686570afa26988ac')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  ./configure \
    --prefix=/usr \
    --host=${CHOST}

  make -j1 all
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make install instroot="${pkgdir}"
}
